package main;

import java.text.DateFormat;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import org.dom4j.Node;

public class DoorEventAnalyze {

	private HashMap<String, String> empList;
	private List<Node> eventLog;

	private ArrayList<Employee> empInfo;

	public void setEmpList(HashMap<String, String> empList) {
		this.empList = empList;
	}

	public void setEventLog(List<Node> eventLog) {
		this.eventLog = eventLog;
	}

	public void makeEmpRestRoomAttendLog() {
		int i = 0;
		for (Node node : eventLog) {
			
			empInfo.add(new Employee());
			System.out.println(empInfo.get(i));
			empInfo.get(i).setKey(node.selectNodes("token").toString());
			empInfo.get(i).setName(empList.get(node.selectNodes("token").toString()));
			//empInfo.get(i).setInTime("");
			//empInfo.get(i).setOutTime("");
			
			i++;
		}
	}
}
